package eteam.aps.model.export.query;

import com.fasterxml.jackson.annotation.JsonIgnore;
import eteam.aps.common.constant.StepType;
import eteam.aps.common.entity.ParentEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDate;

/**
 * ClassName QualityQuery
 *
 * @author Ll
 * @since 2025/5/28
 * Description ：质检数据查询条件
 */
@ApiModel("质检数据查询条件")
@Getter
@Setter
public class QualityQuery {
    @ApiModelProperty("开始日期")
    private LocalDate startTime;
    @ApiModelProperty("结束日期")
    private LocalDate endTime;
    @ApiModelProperty("业务类型：1 质检，2测试")
    private Integer type = 1;
    @ApiModelProperty("工序编号")
    private String wpCode;
    @JsonIgnore
    // 异常报工
    private Integer operateDescNo = StepType.NO;
    @JsonIgnore
    // 正常报工
    private Integer operateDescOK = StepType.OK;
    @JsonIgnore
    // 状态
    private Integer status = ParentEntity.FSTATE_DELETED;
}
